package cn.jxufe.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.jxufe.entity.LandDemand;
import cn.jxufe.entity.SeedType;
import cn.jxufe.service.LandDemandService;
import cn.jxufe.service.SeedTypeService;

/***
 * 获取土地种类信息
 * @author Banner
 *
 */
@Controller
@RequestMapping("landDemand")
public class LandDemandController {
	@Autowired
    private LandDemandService landDemandService;
	
	/***
	 * 获取所有的土地类型信息.
	 * @return 土地需求列表
	 */
	@RequestMapping("data")
	@ResponseBody
	public List<LandDemand> grid() {
		
		return landDemandService.data();
	}
	
	
}
